using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;using THSERP.BusinessEntities;using THSERP.BaseProvider;

namespace THSERP.Modules.ReturnSupplier.UI
{
	/// <summary>
	/// Summary description for DMRS100
	/// </summary>
	public partial class DMRS100 : THSERPScreen
	{

		public DMRS100()
		{
			//
			// Required designer variable
			//
			InitializeComponent();
		}

        /// <summary>
        /// Add item
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>Hieu.nguyen_12/05/2010</remarks>
        private void fld_btnButton2_Click(object sender, EventArgs e)
        {
            ((Modules.ReturnSupplier.ReturnSupplierModule)this.Module).AddItemsToReturnSupplierItemsList();
        }

        /// <summary>
        /// Change item
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>Hieu.nguyen_12/05/2010</remarks>
        private void fld_btnButton_Click(object sender, EventArgs e)
        {
            ((Modules.ReturnSupplier.ReturnSupplierModule)this.Module).ChangeItemFromReturnSupplierItemsList();
        }

        /// <summary>
        /// Delete item
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>Hieu.nguyen_12/05/2010</remarks>
        private void fld_btnButton1_Click(object sender, EventArgs e)
        {
            ((Modules.ReturnSupplier.ReturnSupplierModule)this.Module).DeleteItemFromReturnSupplierItemsList();
        }

        private void fld_lkeFK_HREmployeeID_Validated(object sender, EventArgs e)
        {
            ((Modules.ReturnSupplier.ReturnSupplierModule)this.Module).Staff_Validated(sender, e);
        }

        private void fld_lkeFK_ICProductAttributeID_Validated(object sender, EventArgs e)
        {
            ((Modules.ReturnSupplier.ReturnSupplierModule)this.Module).THSProductLookupEdit_Validated(sender, e);
        }

        private void fld_txtAPReturnSupplierShippingFees_Validated(object sender, EventArgs e)
        {
            ((Modules.ReturnSupplier.ReturnSupplierModule)this.Module).ChangeFee();
        }
	}
}
